import http from "./http";
//获取用户信息
export const getUserInfo = () => {
  return http.request({
    url: "/user/get-user-info",
    method: "GET",
  });
};
//获取公告列表
export const getNotice = () => {
  return http.request({
    url: `/notice/list`,
    method: "GET",
  });
};
//获取公告详情
export const getNoticeDetail = (id) => {
  return http.request({
    url: `/notice/query-by-id?id=${id}`,
    method: "GET",
  });
};
